<?php /* Smarty version 2.6.11, created on 2011-07-04 10:49:55
         compiled from article_list.php */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'article_list.php', 30, false),array('modifier', 'join', 'article_list.php', 32, false),)), $this); ?>
<table width="99%" border="0" align="center"  cellpadding="3" cellspacing="1" class="table_style">
      <tr align="center" style="background-color:#F3F8F7">
        <td>&nbsp;</td>
        <td>ID</td>
        <td>标题</td>
        <td>状态</td>
        <td>发布者</td>
        <td>发布时间</td>
        <td>属性</td>
        <td>操作</td>
      </tr>
      <?php $_from = $this->_tpl_vars['articles']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['val']):
?>
      <tr align="center" class="cbg">
        <td><input name="aid[]" type="checkbox" value="<?php echo $this->_tpl_vars['val']['aid']; ?>
" /></td>
        <td><?php echo $this->_tpl_vars['val']['aid']; ?>
</td>
        <td align="left">
        	<a href="index.php?m=system&a=preview&aid=<?php echo $this->_tpl_vars['val']['aid']; ?>
" style="color:#F90" target="_blank">[预览]</a> 
            <a href="http://www.baidu.com/s?wd=<?php echo $this->_tpl_vars['val']['title']; ?>
&ie=utf-8" target="_blank"><img src="style/images/baidu.jpg" width="16" height="16" border="0" /></a>
            <a href="index.php?m=article&a=edit&aid=<?php echo $this->_tpl_vars['val']['aid']; ?>
&wid=<?php echo $this->_tpl_vars['column']['wid']; ?>
" aid="<?php echo $this->_tpl_vars['val']['aid']; ?>
" class="article" ><?php echo $this->_tpl_vars['val']['title']; ?>
</a>
            
        </td>
       
        <td id="stat_<?php echo $this->_tpl_vars['val']['aid']; ?>
">
        <?php if ($this->_tpl_vars['val']['html']): ?>
        <a href="javascript:;" class="articleSet" style="color:green;" field="html" value="0" aid="<?php echo $this->_tpl_vars['val']['aid']; ?>
">已审核</a>
        <?php else: ?>
        <a href="javascript:;" style="color:#CCC;" class="articleSet" field="html" value="1" aid="<?php echo $this->_tpl_vars['val']['aid']; ?>
">未审核</a><?php endif; ?>
        </td>
        <td><?php echo $this->_tpl_vars['val']['writer']; ?>
</td>
        <td align="center"><?php echo ((is_array($_tmp=$this->_tpl_vars['val']['posttime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
</td>
         <td>
          <?php $this->assign('flag', ((is_array($_tmp=",")) ? $this->_run_mod_handler('join', true, $_tmp, $this->_tpl_vars['val']['flag']) : join($_tmp, $this->_tpl_vars['val']['flag']))); ?>
          <span><a href="#" style="<?php if ($this->_tpl_vars['val']['flag'] && in_array ( 'h' , $this->_tpl_vars['val']['flag'] )): ?>color:green;<?php else: ?>color:#CCC;<?php endif; ?>" class="articleSet" field="h" aid="<?php echo $this->_tpl_vars['val']['aid']; ?>
" value="<?php echo $this->_tpl_vars['flag']; ?>
">头条</a></span>
          <span><a href="#" style="<?php if ($this->_tpl_vars['val']['flag'] && in_array ( 'c' , $this->_tpl_vars['val']['flag'] )): ?>color:green;<?php else: ?>color:#CCC;<?php endif; ?>" class="articleSet" field="c" aid="<?php echo $this->_tpl_vars['val']['aid']; ?>
" value="<?php echo $this->_tpl_vars['flag']; ?>
">推荐</a></span>
          <span><a href="#" style="<?php if ($this->_tpl_vars['val']['flag'] && in_array ( 'a' , $this->_tpl_vars['val']['flag'] )): ?>color:green;<?php else: ?>color:#CCC;<?php endif; ?>" class="articleSet" field="a" aid="<?php echo $this->_tpl_vars['val']['aid']; ?>
" value="<?php echo $this->_tpl_vars['flag']; ?>
">特荐</a></span>
        </td>
        <td align="center"><a href="index.php?m=article&a=edit&aid=<?php echo $this->_tpl_vars['val']['aid']; ?>
&wid=<?php echo $this->_tpl_vars['column']['wid']; ?>
" aid="<?php echo $this->_tpl_vars['val']['aid']; ?>
" style="color:#F90" class="editlink" target="_blank">编辑</a> <a href="index.php?m=article&amp;a=delete&amp;aid=<?php echo $this->_tpl_vars['val']['aid']; ?>
&ajax=1" class="delete" style="color:red;">删除</a></td>
      </tr>
      <?php endforeach; endif; unset($_from); ?>
      </table>